import request from '@/utils/request'

// 查询城市ip段列表
export function listCitysegment(query,rou) {
  return request({
    url: '/ipmanagement/citysegment/list/'+rou,
    method: 'get',
    params: query
  })
}

// 查询城市ip段详细
export function getCitysegment(id) {
  return request({
    url: '/ipmanagement/citysegment/' + id,
    method: 'get'
  })
}

// 新增城市ip段
export function addCitysegment(data,rou) {
  return request({
    url: '/ipmanagement/citysegment/'+rou,
    method: 'post',
    data: data
  })
}

// 修改城市ip段
export function updateCitysegment(data,rou) {
  return request({
    url: '/ipmanagement/citysegment/'+rou,
    method: 'put',
    data: data
  })
}

// 删除城市ip段
export function delCitysegment(id) {
  return request({
    url: '/ipmanagement/citysegment/' + id,
    method: 'delete'
  })
}
